<template>
  <div class="chart">

  </div>
</template>

<script>
export default {
  name: "Chart",
  props: ["Option"],
  data() {
    return {
      chart: null,
    };
  },
  mounted() {
    this.chart = this.$echarts.init(this.$el);
    this.chart.setOption(this.Option);
  },
};
</script>

<style>
.chart{
  width: 100%;
  height: 30rem;
}
</style>